package Io;

import java.io.FileOutputStream;
import java.io.IOException;

public class FOSDemo {
    public static void main(String[] args) throws IOException {
        //向文件fos.dat中写入字节
        FileOutputStream fos = new FileOutputStream("./fos.dat");

        fos.write(1);

        fos.write(5);
        System.out.println("写出完毕!");
        fos.close();
    }
}
